package com.tj.collection.controller.models.response;

import com.fqgj.common.api.ResponseData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "addImageRsp", description = "添加照片接口请求参数")
public class AddImageRsp implements ResponseData {
    @ApiModelProperty("image code")
    private String imageCode;
    @ApiModelProperty("照片地址")
    private String imageUrl;

    public String getImageCode() {
        return imageCode;
    }

    public void setImageCode(String imageCode) {
        this.imageCode = imageCode;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public static AddImageRsp toImage(String imageCode, String imageUrl) {
        AddImageRsp imageRsp = new AddImageRsp();
        imageRsp.setImageCode(imageCode);
        imageRsp.setImageUrl(imageUrl);
        return imageRsp;
    }
}
